#define _CRT_SECURE_NO_WARNINGS
int main()
{
	if (head != nullptr && head->val == val) {
		head = head->next;
	}
	return 0;
}